﻿using SqlSugar;
using System;

namespace SYSoft.Model.Model
{
    public class RootEntity
    {
        /// <summary>
        /// ID  自增的主键一定要加IsIdentity特性 防止插入失败
        /// </summary>
        [SugarColumn(IsNullable = false, IsPrimaryKey = true)]
        public int Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateOn { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改时间
        /// </summary>
        public virtual DateTime UpdateOn { get; set; } = DateTime.Now;
        /// <summary>
        /// 创建者
        /// </summary>
        public virtual int CreateBy { get; set; }
        /// <summary>
        /// 修改者
        /// </summary>
        public virtual int UpdateBy { get; set; }
        /// <summary>
        /// 菜单状态(1：启用，0：禁用）
        /// </summary>
        public int Status { get; set; }


    }
}